#pragma once

#define GETCLIENTRECT(rc, control) CRect rc; control.GetClientRect(rc); rc.OffsetRect(-rc.left, -rc.top);
#define GETSCREENRECT(rc, control) CRect rc; control.GetWindowRect(rc); ScreenToClient(rc);
#define GETCONTROLRECT(rc, control) CRect rc; control.GetWindowRect(rc); rc.OffsetRect(-rc.left, -rc.top);

#define FOR_EACH_BEGIN(interator_type, var) {\
	interator_type curr, next;\
	for(curr = (var).begin();curr != (var).end(); curr = next)\
	{\
		next = curr;\
		next++;\


#define FOR_EACH_END	}}
